﻿@{
    ViewBag.Title = "Index";
}

<fieldset>

    <legend>Bienvenido</legend>
    <h1>@User.Identity.Name</h1>

    @{
        
    projectManagementWeb.Controllers.DeveloperController controlLayer = new projectManagementWeb.Controllers.DeveloperController();
    projectManagementWeb.Models.Developer.UserDataModel userData = controlLayer.GetUserData(@User.Identity.Name);
    <h2>@userData.UserCompleteName</h2>
    <h2>@userData.UserMail</h2>
        projectManagementWeb.Controllers.ProjectLeaderController plControlLayer = new projectManagementWeb.Controllers.ProjectLeaderController();    
    <h2>Proyecto: @plControlLayer.GetUserProject(User.Identity.Name)</h2>
        
    
   }

   <div>
    @Html.ActionLink("Administración de Tareas", "ProjectTasksForm")
    <br />
    @Html.ActionLink("Administración de Módulos", "ModuleIndex")
    <br />
    @Html.ActionLink("Administrar Recursos", "ProjectLeaderAssignResourcesform")
    <br />
    @Html.ActionLink("Reportes de Proyecto", "ProjectLeaderReportsForm", new AjaxOptions { HttpMethod = "GET" })
    <br />

    
@using (Html.BeginForm("PostIndex", "ProjectLeader", FormMethod.Post))
{
     <p>
       <input type="submit" value="Establecer Línea Base"/>
    </p>
}
 
</div>

</fieldset>
